//统一管理咱们项目平台相关的接口
import request from "@/utils/request"
//项目平台相关的请求地址
const API = {
  SPREAD_LIST_URL: "/super/spread/list",
  SPREAD_CREATE_URL: "/super/spread/create",
  SPREAD_UPDATE_URL: "/super/spread/update",
}

//获取平台列表
export const list = (params) =>
  request.get(API.SPREAD_LIST_URL, { params })

//创建平台
export const create = (data) =>
  request.post(API.SPREAD_CREATE_URL, data)

//修改平台
export const update = (data) =>
  request.post(API.SPREAD_UPDATE_URL, data)